package com.example.yqand4v1_1.service;

import org.springframework.stereotype.Service;


import java.util.HashMap;
import java.util.Map;

import static com.example.yqand4v1_1.common.utils.RtcTokenBuilderSample.getToken;


@Service
public class VideoServie {
    public Map<String, Object> Getmessage(String uid) throws Exception {
        Map<String, Object> result = new HashMap<>();
        String appId="80725d6909ac496cae9ea4baed2d1759";
        String channelName=uid;
        String token=getToken(channelName);
        result.put("appId", appId);
        result.put("channelName", channelName);
        result.put("token", token);
        System.out.println(result);
        return result;
    }
}
